﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.View
{
    public class VStockChangedRecord
    {
        #region entity
        public Guid Id { get; set; }
        public Guid StockId { get; set; }

        /// <summary>
        /// 仓库Id
        /// </summary>
        public Guid WarehouseId { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public Guid MaterialId { get; set; }

        /// <summary>
        /// 变化类型
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 销售模式
        /// </summary>
        public int? SalesMode { get; set; }

        /// <summary>
        /// 对应的单据号，根据类型不同单据不同
        /// </summary>
        public Guid BillId { get; set; }

        public int BillType { get; set; }

        public string BillNumber { get; set; }

        /// <summary>
        /// 成本/价格
        /// 正为成本，负为价格
        /// </summary>
        public decimal Cost { get; set; }

        /// <summary>
        /// 入库数量为正，出库为负
        /// </summary>
        public decimal Count { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public decimal RemainingCount { get; set; }

        /// <summary>
        /// 剩余成本
        /// </summary>
        public decimal RemainingCost { get; set; }

        public DateTime CreatedTime { get; set; }
        public string Creator { get; set; }
        #endregion

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string WarehouseName { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        public Guid BusinessId { get; set; }

        public Guid StationId { get; set; }
    }
}
